#!/bin/bash 

# Determine where we're going to copy to
NODE_PATH=`rospack find opencv3`

# Find the files we're going to copy
FILES=`find -type f | grep -v "\.svn" | grep -v copy_to_node`

# Copy the files
echo -e "\nCopying:"
echo "-------"
for FILE in $FILES 
do
	DESTINATION=`echo $FILE | sed "s,\./,$NODE_PATH/,g"`
	echo -e "$FILE --> $DESTINATION"
	cp $FILE $DESTINATION
done
echo ""

